import BaseDao from './base';

export default class SumsDao extends BaseDao {

  modelName = 'Sums';

  constructor(modules) {
    super(modules);
  }

  async getSumsAll(sums) {
    return await this.findAll(sums);
  }

  async getSumsList(sums) {
    return await this.findAndCountAll(sums);
  }

  async addSums(sums) {
    return await this.insert(sums);
  }
}